﻿//添加品牌
function cbType()
{
  if(str!=true)
  {
  document.getElementById("LlCategories").style.display="none";
  }
  else
  {
  document.getElementById("LlCategories").style.display="";
  }
}

//添加品牌验证
function validate()
{
var   products=document.getElementsByName("cbType");
    for(i=0;i<products.length;i++)
    {   
        if(products(i).checked)
        {  
            if(document.getElementById("ProductCategories").value=="")
            {
                document.getElementById("ProCategoriesList").innerHTML="*请选择产品分类！";
                return false;
            }
        }   
    } 
   if(document.getElementById("StairCategories").value=="")
   {
    document.getElementById("vaStairCategories").innerHTML="*请填写品牌名称！";
    return false;
   }
}